package com.tianzj.boot.mvc.repository.system;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.tianzj.boot.mvc.entity.system.SysUser;

public interface SysUserRepository extends JpaRepository<SysUser, Long>,JpaSpecificationExecutor<SysUser> {

	SysUser findByUserName(String userName);

	Page<SysUser> findByStatusNot(int i, Pageable pageable);

	SysUser findByUserNameAndPassword(String userName, String password);
}
